<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<body>
	<h2>Notification</h2>
	
	<a href="add">Add Notification</a> | <a href="list">Refresh</a>
	
	<table border="1">
		<thead>
			<tr>
				<td>Name</td>
				<td>Description</td>
				<td>Status</td>
				<td>Enable</td>				
				<td>Action</td>
			</tr>
		</thead>

		<c:forEach items="${notificationList}" var="notification">
			<tr>
			  <td><a href="update/${notification.keyAsString}">${notification.name}</a></td>
			  <td>${notification.description}</td>
			  <td>
			  	${statusList[notification.status]}			  
			  </td>
			  <td>${notification.enabled?'Y':'N'}</td>			  
			  <td>
			  	<a href="delete/${notification.keyAsString}">Delete</a>
		      </td>
			</tr>
		</c:forEach>
		
     
	</table>
	
</body>
</html>